﻿<UserControl x:Class="MetroHome.LibraryItem"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             Width="220" Height="50" RenderTransformOrigin="0.5,0.5"
             MouseLeftButtonDown="UserControl_MouseLeftButtonDown" MouseLeftButtonUp="UserControl_MouseLeftButtonUp" MouseLeave="UserControl_MouseLeave" Opacity="1">
    <UserControl.RenderTransform>
        <TransformGroup>
            <ScaleTransform x:Name="Scale"/>
            <TranslateTransform x:Name="Translation"/>
        </TransformGroup>
    </UserControl.RenderTransform>
    <!--<UserControl.Triggers>
        <EventTrigger RoutedEvent="UserControl.Loaded">
            <BeginStoryboard>
                <Storyboard>
                    <DoubleAnimation x:Name="TransformAnim" Storyboard.TargetName="Translation" Storyboard.TargetProperty="X" From="175" To="0" Duration="0:0:0.5" CurrentStateInvalidated="TransformAnim_CurrentStateInvalidated"/>
                </Storyboard>
            </BeginStoryboard>
        </EventTrigger>
    </UserControl.Triggers>-->
    <DockPanel>
        <Image Name="IconImage" Width="48"/>
        <TextBlock Name="TitleTextBlock" Foreground="White" FontSize="14" VerticalAlignment="Center" Margin="5,0,5,0"/>
    </DockPanel>
</UserControl>
